package org.tmad.ocms.service;

import org.apache.log4j.Logger;
import org.tmad.ocms.dao.CaseDetailsDAO;
import org.tmad.ocms.exceptions.ApplicationException;
import org.tmad.ocms.log.LogFactory;
import org.tmad.ocms.model.Case;

public class CaseDetailsService {

	private CaseDetailsDAO cDAO = null;
	private static Logger logger = LogFactory.getLogger();
	
	
	
	public boolean caseUser(Case user) throws ApplicationException{
		
		boolean result =false;
		cDAO = new CaseDetailsDAO();
		
		try{
		result = cDAO.casedetails(user);
		
		}catch(Exception e){
			logger.error("error while registration ", e);
			throw new ApplicationException("Unable to register" + e.getMessage());
		}
		return result;
		}	
}
